from odoo import fields, models


class PurchaseOrderLine(models.Model):
    _inherit = 'purchase.order.line'

    s_close = fields.Boolean(string='Close', copy=False, readonly=True, default=False)

    def action_close_order(self):
        self.write({'s_close': True})